import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询 /vsRetailOrder/searchRetailOrderForDealer
export const queryList = (params) => axios.get(`${SERVER.RETAIL}/vsRetailOrderArcfox/searchRetailOrderForDealer`, {
  params
})
// 详情  /vsRetailOrder/searchRetailOrderById
export const queryRetailOrderById = (Id) => axios.get(`${SERVER.RETAIL}/vsRetailOrderArcfox/searchRetailOrderById?id=${Id}`)

// 导出 /vsRetailOrder/searchRetailOrderForDealerExcel
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/vsRetailOrderArcfox/searchRetailOrderForDealerExcel`, params, {
  responseType: 'blob'
})

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
